import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 会员设备列表分页查询
export const findMemberDeviceListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/findMemberDeviceListPage',
        method: 'get',
		params: query,
    });
};
// 会员设备详情查询
export const findMemberDeviceInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/findMemberDeviceInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增会员设备
export const addMemberDevice = data => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/saveMemberDevice',
        method: 'post',
		data: data,
    });
};
// 编辑会员设备
export const saveMemberDevice = data => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/saveMemberDevice',
        method: 'put',
		data: data,
    });
};
// 删除会员设备
export const deleteMemberDeviceById = data => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/deleteMemberDeviceById/'+data,
        method: 'delete',
    });
};
// 批量删除会员设备
export const batchDeleteMemberDevice = data => {
    return request({
        url: baseRequest_url+'/admin/memberDevice/deleteMemberDevice',
        method: 'delete',
        data: data
    });
};